package com.xmall.bean.table;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Groupon {
    private Integer id;

    /**
    * 关联的订单ID
    */
    private Integer orderId;

    /**
    * 参与的团购ID，仅当user_type不是1
    */
    private Integer grouponId;

    /**
    * 团购规则ID，关联cskaoyanmall_groupon_rules表ID字段
    */
    private Integer rulesId;

    /**
    * 用户ID
    */
    private Integer userId;

    /**
    * 创建者ID
    */
    private Integer creatorUserId;

    /**
    * 创建时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date addTime;

    /**
    * 更新时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /**
    * 团购分享图片地址
    */
    private String shareUrl;

    /**
    * 是否已经支付
    */
    private Boolean payed;

    /**
    * 逻辑删除
    */
    private Boolean deleted;
}